<div class="box">
<div class="service-level box-body row">
		<!-- BOX-BODY -->
		<h3 class="col-sm-12 base-imformation">
			<span class="inline-block" style="float:left;">基础信息</span>
			<p class="user-add-btn inline-block">
				{{#if isBaseTenant}}
					{{#if detailEdit}}
					{{else}}
						{{#if serviceLevelInfo.delFlag}}
							{{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
							removeAction="delById" delById="delById" clickActParams=serviceLevelInfo}}
							{{/ui/form-function}}
						{{else}}
							{{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
							 deleteNone=true clickActParams=serviceLevelInfo}}
							{{/ui/form-function}}
						{{/if}}
					{{/if}}
				{{else}}
					{{#if isStandardModel}}
						{{#if detailEdit}}
						{{else}}
							{{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
							 deleteNone=true clickActParams=serviceLevelInfo}}
							{{/ui/form-function}}
						{{/if}}
					{{else}}
						{{#if detailEdit}}
						{{else}}
							{{#if serviceLevelInfo.delFlag}}
								{{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
								removeAction="delById" delById="delById" clickActParams=serviceLevelInfo}}
								{{/ui/form-function}}
							{{else}}
								{{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
								 deleteNone=true clickActParams=serviceLevelInfo}}
								{{/ui/form-function}}
							{{/if}}
						{{/if}}
					{{/if}}
				{{/if}}

			</p>
		</h3>
		<div class="col-sm-12 mr10 " style="width:98.5%;">
  		<div class="nopadding-vertical">
				<!-- 列表编辑-->
					{{#bs-form formLayout=formLayout model=serviceLevelModel invalid=(action "invalid")}}
				<div class="row">
						<div class="col-xs-12 nopadding-horizontal mb20">
							<div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">活动套餐名称：</span>
									{{#if detailEdit}}
										{{#if isBaseTenant}}
											{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='必填'}}
										{{else}}
											{{#if isStandardModel}}
												<div class="input-group-content">{{serviceLevelInfo.name}}</div>
											{{else}}
												{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='必填'}}
											{{/if}}
										{{/if}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.name}}</div>
									{{/if}}
								</div>
							</div>
							{{!-- <div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">日价格(元/天)：</span>
									{{#if detailEdit}}
										{{bs-form-element property="price" class="inline-block form-input-group label-normal" controlType="price" placeholder=''}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.price}}</div>
									{{/if}}
								</div>
							</div>
							<div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">月价格(元/月)：</span>
									{{#if detailEdit}}
											{{bs-form-element property="totalPrice" class="inline-block form-input-group label-normal" controlType="totalPrice" placeholder=''}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.totalPrice}}</div>
									{{/if}}
								</div>
							</div> --}}
							{{!-- {{#if isBaseTenant}}
							<div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">规范类型：</span>
									{{#if detailEdit}}
										{{#power-select class="input-group-content" placeholder='' options=modelSourceList  selected=serviceLevelInfo.modelSource searchField="namePinyin"
										noMatchesMessage="没有相关内容"	allowClear=false onchange=(action "selectModelSource" ) as |modelSource|}}
											{{modelSource.name}}
										{{/power-select}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.modelSource.name}}</div>
									{{/if}}
								</div>
							</div>
							<div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">等级编码：</span>
									{{#if detailEdit}}
										{{bs-form-element property="sourceCode" class="inline-block form-input-group label-normal" controlType="sourceCode" placeholder=''}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.sourceCode}}</div>
									{{/if}}
								</div>
							</div>
							{{/if}} --}}
							{{!-- {{#if id}}
							<div class="col-xs-12 col-sm-6">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">增值服务费：</span>
									<div class="input-group-content">{{projectInfo.valueAddPrice}}</div>
								</div>
							</div>
							{{/if}} --}}
							<div class="col-xs-12 col-sm-12 mt10 nopadding-right">
								<div class="form-input-group label-normal">
									<span class="input-group-addon">备注说明：</span>
									{{#if detailEdit}}
										{{#if id}}
											{{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=serviceLevelModel.remark}}
										{{else}}
											{{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=serviceLevelModel.remark}}
										{{/if}}
									{{else}}
										<div class="input-group-content">{{serviceLevelInfo.remark}}</div>
									{{/if}}
								</div>
							</div>
						</div>
				</div>
				<!-- 列表编辑 -->
				{{/bs-form}}
  		</div>
		</div>
		<h3 class="col-sm-12 base-imformation">活动项目</h3>
		{{!-- <h3 class="col-sm-12 base-imformation">活动项目<span style="font-size:12px;"><div style="width:10px;height:10px;background-color:#ccc;display:inline-block;margin-left:5px;"></div>为增值服务</span></h3> --}}
		<div class="col-sm-12 nopadding-left nopadding-right">
			{{#each allServiceList as |service|}}
				<div class="{{if media.isJumbo 'col-lg-3' 'col-sm-4'}} service">
					{{callbusi/activity-list-item class="inline-block"  service=service flags=flags chooseService="chooseService" chooseService=(action 'chooseService' service) checkService="checkService" checkService=(action "checkService" service)  detailEdit=detailEdit}}
				</div>
			{{/each}}
		</div>
		<div class="col-sm-12">
			<div class="text-center padding-top30">
					<p class="text-center user-add-btn" style="display:inline-block;margin:0 auto!important ">
					{{#if detailEdit}}
					{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-check"  text='保存' clickAction="detailSaveClick" detailSaveClick="detailSaveClick" clickActParams=serviceLevelModel}}
					{{/ui/mix-button}}
					{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-mail-reply"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
					{{/ui/mix-button}}
					{{else}}
					{{/if}}
					</p>
			</div>
		</div>
	</div>
</div>
{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}
		{{#bs-modal-footer as |footer|}}
			{{#bs-button action=(action "cancelPassSubmit" serviceLevelInfo) type="primary" disabled=prepaidDisabled}}确定{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}

{{#if serviceInfo}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "cancel")}}
		{{#bs-modal-header}}
			<h3 class="modal-title">项目详情</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
		<div class="col-xs-12 col-sm-6">
			<div class="form-input-group">
				<span class="input-group-addon">项目名称：</span>
				<div class="input-group-content">{{curService.name}}</div>
			</div>
		</div>
		{{!-- <div class="line "> --}}
			{{!-- <div class="col-xs-12 col-sm-6"	>
				<div class="form-input-group">
					<span class="input-group-addon">执行方式：</span>
					<div class="input-group-content">{{curService.countType.typename }}</div>
				</div>
			</div> --}}
		{{!-- </div> --}}
		<div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<span class="input-group-addon">适用人群：</span>
				<div class="input-group-content">{{curService.fitpeople.typename }}</div>
			</div>
		</div>
		<div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<span class="input-group-addon">周&emsp;&emsp;期：</span>
				<div class="input-group-content">{{curService.period.typename}}</div>
			</div>
		</div>
		<div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<span class="input-group-addon">频次&nbsp;(次/{{serviceitemInfo.period.typename}})：</span>
				<div class="input-group-content">{{curService.frequency}}</div>
				</div>
		</div>
		<div class="col-xs-12 col-sm-6"	>
			<div class=" form-input-group">
				<div class="input-group-addon">参考时间(分钟)：</div>
				<div class="input-group-content">{{curService.activityTime}}</div>
			</div>
		</div>
		<div class="col-xs-12 col-sm-12">
			<div class="form-input-group">
				<div class="input-group-addon" style="height: auto">项目说明：</div>
				<div class="input-group-content" style="height: auto">{{curService.remark}}</div>
			</div>
		</div>
		{{!-- <div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<div class="input-group-addon">数量单位：</div>
				<div class="input-group-content">{{curService.serviceNum}}</div>
			</div>
		</div> --}}
		{{!-- <div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<div class="input-group-addon">服务类型：</div>
				<div class="input-group-content">{{curService.serviceValueType.typename }}</div>
			</div>
		</div> --}}
		{{!-- {{#if curService.valueAdd}}
		<div class="col-xs-12 col-sm-6"	>
			<div class="form-input-group">
				<div class="input-group-addon">价格(元/次)</div>
				<div class="input-group-content">{{curService.price }}</div>
			</div>
		</div>
		{{/if}} --}}
		{{!-- <div class="col-xs-12 col-sm-12"	>
			<div class=" form-input-group">
				<div class="input-group-addon">完成情况：</div>
						<div class="input-group-content">
							{{#if curService.resultList}}
								{{#each curService.resultList as |result|}}
								<span >
									{{result.name}}
								</span>
								{{/each}}
							{{else}}
								<span >
									无
								</span>
							{{/if}}
						</div>
			</div>
		</div> --}}
		{{!-- <div class="col-xs-12 col-sm-12"	>
			<div class=" form-input-group">
				<div class="input-group-addon">所需物品：</div>
						<div class="input-group-content">
							{{#if curService.merchList}}
								{{#each curService.merchList as |merch|}}
								<span >
									{{merch.merch.name}} × {{merch.merchNum}} {{merch.merch.merchUnit.typename}}
								</span>
								{{/each}}
							{{else}}
								<span>无</span>
							{{/if}}
						</div>
				</div>
		</div> --}}
		{{/bs-modal-body}}
		{{#bs-modal-footer class="user-add-btn"}}
			{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='确定' clickAction="cancel" cancel="cancel"}}
			{{/ui/mix-button}}
			{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="cancel" cancel="cancel"}}
			{{/ui/mix-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
